

a=[]
with open("chall.txt","r") as f:
    for i in f.readlines():
        a.append(i.strip())
print(a)
a2=''
for i in a:
    tmp=bin(int(i))[-1]
    a2+=(str(tmp))

print(a2)
a2=a2[::-1]
import  libnum
print(libnum.b2s(a2))